package cn.com.pingtech.master.service;

import cn.com.pingtech.master.domain.MasterModel;
import cn.com.pingtech.master.mapper.MasterMapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhusy
 * @description MasterService
 * @date 2021/1/7 17:12
 */
@Service
public class MasterService{

    @Autowired
    MasterMapper masterMapper;

    @DS("master")
    public List<MasterModel> list(){
        Wrapper wrapper = new QueryWrapper<MasterModel>();
        List<MasterModel> list = masterMapper.selectList(wrapper);
        return list;
    }
}
